﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@model IEnumerable<sipfe.model.dataAccess.SIPMaeSolicitud>
@using Resources;
@{
    Layout = "~/Views/Shared/Layaout/general/_LayoutGeneral.cshtml";
    String clase = "";
    decimal claseId =0;    
    int i = 0;
    List<sipfe.model.dataAccess.SIPDetSolicitud> pasos;
    List<sipfe.model.dataAccess.SIPDetSoliActor> actores;
    
    if (Model != null)
    {
        //sipfe.model.dataAccess.SIPMaeSolicitud solicitud = null;
        //solicitud = (orienta.Models.ORIMaeSolicitud)ViewBag.solicitud;
        //clase = solicitud.SIPDetCompendio1.vNomCorto; 
        
    }
    
    
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.personaJS)" ></script> 
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.autocompleteJS)" ></script> 
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.calendarioJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.validatelJS)" ></script>
<script type="text/javascript" language="javascript" src="@Url.Content(@properties.unobtrusiveJS)" ></script>
<br />
<center>
<fieldset style="width: 50%;" class="fieldsetStyle1">
    <legend class="tituloBlue9">DATOS DE LA SOLCITUD GENERADA</legend>
    <table border="0" style="width: 100%;" cellpadding="0" cellspacing="0">
        <tbody>
            <tr>
                <td class="letramensajes" align="center">Se Registro la Solicitud, Satisfactoriamente...</td>
            </tr>
            <tr><td><hr /></td></tr>
            @foreach (var item in Model)
            {
                clase = item.SIPDetCompendio.vNomCorto;
                claseId = item.nIdeClaseSolicitud;            
              <tr>
                <td>
                    <table width="100%" cellpadding="1" border="0" cellspacing="0" >
                    <tbody class="tituloCelesteN8">
                        <tr align="left">
                            <td style="width: 115px;" >Número de Solicitud</td>
                            <td style="width: 2px;">:</td>
                            <td class="textNormal8">
                                @String.Format("{0:0000}", item.nIdeDepSolicitud)-@String.Format("{0:0000}", item.nAnnSolicitud)-@clase.Substring(0, 3)-@String.Format("{0:000000}", item.nNumCorre)
                            </td>
                        </tr>
                        <tr><td colspan="3"><hr /></td></tr>
                        <tr align="left">
                            <td>Destino</td>
                            <td>:</td>
                            <td>
                               <table width="100%" cellpadding="1" border="0" cellspacing="0" >
                                   @{
                                        pasos = item.SIPDetSolicitud.ToList();
                                        foreach (sipfe.model.dataAccess.SIPDetSolicitud paso in pasos)
                                        {
                                            actores = paso.SIPDetSoliActor.ToList();
                                            foreach (sipfe.model.dataAccess.SIPDetSoliActor actor in actores)
                                            {
                                                if (actor.nIdeTipoActor==2)
                                                {
                                                   i++;
                                                     <tr>
                                                         <td style="width:10px;">@i]&nbsp;</td>
                                                         <td>@actor.SIPMaeDependencia.vDescripcion</td>
                                                     </tr>
                                               }
                                            }
                                        }
                                    }
                               </table>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </td>
            </tr>
            <tr><td><hr /></td></tr>
            <tr><td align="center"><a href="@Url.Content("../Nuevo?clase="+@claseId)">Registrar Nueva Solicitud</a></td></tr>
            }   
        </tbody>
    </table>
</fieldset>
</center>